[E2013][EWS][Windows] retreive outlook userproperties in web client.

Hi,

We've built an outlook plugin that requires setting user properties to associate client & custom information with a particular mailItem. Currently we are creating an email web client and want to transfer and access those user properties on the web client.  Are these properties bundled into the message header or stored on exchange and retrieved through a saved key. How can I access these properties, on another mail server, do I have to transfer these to MAPI fields? 

Thanks,
Mil

April 14th, 2015 6:42pm

You can access any user properties you create in your Outlook plugin in EWS using the Extended property interfaces see https://msdn.microsoft.com/en-us/library/office/dn467898%28v=exchg.150%29.aspx . The only thing you can't do with EWS is read or write the userproperty definition blob (which just means you can't enumerate what properties a user has created). That should really be issue however all you need to do is use a MAPI editor like MFCMapi or Outlook Spy to look at an existing item where the properties have set you should then be able to use them like

ExtendedPropertyDefinition UserProperty = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.PublicStrings, "MyCustomProperty", MapiPropertyType.String);
Cheers
Glen

Free Windows Admin Tool Kit Click here and download it now
April 14th, 2015 10:28pm

You can access any user properties you create in your Outlook plugin in EWS using the Extended property interfaces see https://msdn.microsoft.com/en-us/library/office/dn467898%28v=exchg.150%29.aspx . The only thing you can't do with EWS is read or write the userproperty definition blob (which just means you can't enumerate what properties a user has created). That should really be issue however all you need to do is use a MAPI editor like MFCMapi or Outlook Spy to look at an existing item where the properties have set you should then be able to use them like

ExtendedPropertyDefinition UserProperty = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.PublicStrings, "MyCustomProperty", MapiPropertyType.String);
Cheers
Glen

April 15th, 2015 2:26am

Hi Glen,

So If I'm accessing the messages through Imap4 and those properties would only be available on an exchange server environment. I would not be able to get them from msg object, or anything correct? 

Free Windows Admin Tool Kit Click here and download it now
April 15th, 2015 3:56pm

Not using IMAP no I would suggest that you use X-Headers instead which will work okay across IMAP, EWS and MAPI.

Cheers
Glen

April 15th, 2015 7:02pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics